package com.zr.eim.controller;
import com.zr.common.core.controller.BaseController;
import com.zr.common.core.domain.AjaxResult;
import com.zr.eim.service.IEimDataDiagnosticChainService;
import org.springframework.web.bind.annotation.*;
import javax.annotation.Resource;


/**
 * 确诊传播链Controller
 * 
 * @author why
 * @date 2022-10-28
 */
@RestController
@RequestMapping("/eim/diagnostic_chain")
public class EimDataDiagnosticChainController extends BaseController
{
    @Resource
    private IEimDataDiagnosticChainService eimDataDiagnosticChainService;

    /**
     * 获取确诊传播链
     */
    @GetMapping(value = "/{id}")
    public AjaxResult getInfo(@PathVariable("id") Long id)
    {
        return AjaxResult.success(eimDataDiagnosticChainService.getChain(id));
    }

}
